﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TaobaoERP.BusinessTaobao.Common
{
    public class Constants
    {
        /// <summary>
        /// TimeStamp Format String
        /// </summary>
        public static string SIP_TIMESTAMP_FORMATER = "yyyy-MM-dd HH:mm:ss";

        /// <summary>
        /// 返回地址
        /// </summary>
        public static string SIP_Redirecturl = " &sip_redirecturl= "+System.Web.HttpContext.Current.Request.Url.AbsoluteUri;

        /// <summary>
        /// 出错时SIP返回的出错信息
        /// </summary>
        public static string HEADER_SIP_ERROR_MESSAGE = "sip_error_message";

        /// <summary>
        /// 需要定位到isp的登陆地址
        /// </summary>
        //public static string HEADER_SIP_ISP_LOGINURL = "http://sipdev.alisoft.com/sip/login";
        public static string HEADER_SIP_ISP_LOGINURL = "sip_isp_loginurl";

        /// <summary>
        /// SIP API 入口地址
        /// 正式环境：http://sip.alisoft.com/sip/rest
        /// 开发、测试环境：http://sipdev.alisoft.com 
        /// </summary>
        public static string SIP_API_URL = "http://sipdev.alisoft.com/sip/rest";

        /// <summary>
        /// SIP service 入口地址
        /// 正式环境:  http://sip.alisoft.com/sip/sipService 
        /// 开发测试环境: http://sipdev.alisoft.com/sip/sipService
        /// </summary>
        public static string SIP_SERVICE_URL = "sip_service_url";

        /// <summary>
        /// 
        /// </summary>
        public static string API_SECURITY_TYPE_NOTNEED = "0";
        public static string API_SECURITY_TYPE_SIP = "1";
        public static string API_SECURITY_TYPE_USER = "2";
        public static string API_SECURITY_TYPE_USERORNOT = "3";

        /// <summary>
        /// 
        /// </summary>
        public static string HTTP_SIP_STATUS = "sip_status";
        public static string HTTP_METHOD_POST = "POST";
        public static string HTTP_METHOD_GET = "GET";

        public static string CHARACTER_ENCODING = "UTF-8";
    }
}
